package com.sjdang.springcloud.learning.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.sjdang.springcloud.learning.service.impl.ConsumeEurekaClientHystrix;

@FeignClient(value="eureka-client", fallback=ConsumeEurekaClientHystrix.class)
public interface ConsumeEurekaClient {
	
	@GetMapping("/learning/api/hello")
	String sayHello(@RequestParam(value="name", defaultValue="eureka")String name);

}
